<?php
require_once("../../class2.php");
require_once("./includes/require_all.php");

$text_id = $database->escape_value($_GET['text_id']);
$file_name = $database->escape_value($_GET['file_name']);
$content = $database->escape_value($_GET['content']);

$q = "update ".$text_table." set content = '$content' where text_id = '$text_id' and file_name = '$file_name'";
mysql_query($q);
?>